{% extends "base.html" %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-md-8">
        <h2>提交搜索问题工单</h2>

        <form method="POST">
            <input type="hidden" name="query" value="{{ query }}">

            <div class="mb-3">
                <label for="issue_type" class="form-label">问题类型</label>
                <select class="form-select" id="issue_type" name="issue_type" required>
                    <option value="no_results">没有搜索结果</option>
                    <option value="irrelevant">搜索结果不相关</option>
                    <option value="sorting">排序不合理</option>
                    <option value="other">其他问题</option>
                </select>
            </div>

            <div class="mb-3">
                <label for="description" class="form-label">问题描述</label>
                <textarea class="form-control" id="description" name="description"
                          rows="5" required></textarea>
            </div>

            <button type="submit" class="btn btn-primary">提交工单</button>
        </form>
    </div>
</div>
{% endblock %}